.profile-header {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    padding-left: 20px;
    padding-top: 10px;
}

.icon-box {
    width: 43px;
    height: 43px;
    background-color:#3B82F6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 10px;
}

.text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.profile-header-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
}

.profile-header-subtitle {
    font-size: 13px;
    color: gray;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
}
.card {
    background: white;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}
.card-icon-box {
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 15px;
    font-size: 18px;
}

.card-content {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.card-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.card-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}
/* Responsive for smaller screens */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
.challenges-section {
    margin-bottom: 40px;
    padding-left: 30px;
    padding-top: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-top: 24px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.challenge-card {
    background-color: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-3px);
}

.challenge-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.challenge-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.challenge-status {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.completed {
    color: green;
}

.in-progress {
    color: orange;
}

.todo {
    color: gray;
}

.difficulty {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    width: fit-content;
}

.easy {
    background-color: #d4edda;
    color: #155724;
}

.medium {
    background-color: #fff3cd;
    color: #856404;
}

.hard {
    background-color: #f8d7da;
    color: #721c24;
}
.challenges-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;

}

.challenges-icon-box {
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 15px;
    font-size: 18px;
}
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.chart-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 600px;
    box-sizing: border-box;
}

.chart-box canvas {
    width: 100% !important;
    height: 300px !important;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.progress-icon-box {
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
}

.chart-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
}
.leaderboard-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
}

.leaderboard-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.leaderboard-section-icon,
.rank-icon-box {
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 22px;
    color: #222;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.leaderboard-table th {
    background-color: #f8f9fa;
    color: #555;
}

.badge {
    background-color: #007BFF;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width:150px
}
.goals-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;

}

.goals-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.goals-section-icon {
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 22px;
    color: #222;
}

.goal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 5px solid #007BFF;
}

.goal-icon-box {
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
}

.goal-text strong {
    font-size: 16px;
    color: #222;
    display: block;
}

.goal-text p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
}
.dashboard-row {
    display: flex;
    gap: 0px;
    flex-wrap: wrap; /* Makes it responsive on smaller screens */
    justify-content: center;
    margin: 40px auto;
    width: 100%;
}
